import { createRouter, createWebHistory } from 'vue-router'
import Layout from '@/layout/index.vue'
// import routerGuard from './router-guard.js'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: Layout,
      children: [
        {
          path: '/',
          redirect: '/home'
        },
        {
          path: '/home',
          component: () => import('@/mobile/home/index.vue')
        },
        {
          path: '/about',
          component: () => import('@/mobile/about/index.vue')
        }
      ]
    }
  ]
})
// routerGuard(router)

export default router
